package net.toocruel.iqismart.service.dto;

/**
 * @Description
 * @Auther sty
 * @createTime 2018/5/6 上午1:31
 */
public class SessionMessage {
    public static int ERROR = 1;
    public static int OK = 2;

    private int type = OK;
    private String msg = "操作成功";

    public SessionMessage() {
    }

    public SessionMessage(int type, String msg) {
        this.type = type;
        this.msg = msg;
    }

    public SessionMessage(String msg) {
        this.msg = msg;
    }

    private SessionMessage ok(){
        this.type = OK;
        return this;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
